<div id="sidebar-container" style="margin-top:-10px;padding-top:0px;">

	<h3 class="newsletterH3">In This Issue</h3>
	<div class="newslettersidebarbox">
        <ul>
		<?php if(has_sub_field('NLSection')) { ?>
			<li>- <?php the_sub_field('NLSectionTitle'); ?></li>
		<?php } else { ?>

        	<?php if ( get_post_meta($post->ID, 'NLSection1Title', true) ) { ?>
				<li>- <?php meta('NLSection1Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection2Title', true) ) { ?>
				<li>- <?php meta('NLSection2Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection3Title', true) ) { ?>
				<li>- <?php meta('NLSection3Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection4Title', true) ) { ?>
				<li>- <?php meta('NLSection4Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection5Title', true) ) { ?>
				<li>- <?php meta('NLSection5Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection6Title', true) ) { ?>
				<li>- <?php meta('NLSection6Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection7Title', true) ) { ?>
				<li>- <?php meta('NLSection7Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection8Title', true) ) { ?>
				<li>- <?php meta('NLSection8Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection9Title', true) ) { ?>
				<li>- <?php meta('NLSection9Title'); ?></li>
			<?php } ?>
            <?php if ( get_post_meta($post->ID, 'NLSection10Title', true) ) { ?>
				<li>- <?php meta('NLSection10Title'); ?></li>
			<?php } ?>

		<?php } ?>

        </ul>
	</div>
    
    <h3 class="newsletterH3">Quick References</h3>
    <div class="newslettersidebarbox">
        <ul>
        	<li><a href="http://www.sunmaxxsolar.com">SunMaxx Main Site</a></li>
            <li><a href="http://www.sunmaxxsolar.com/sunmaxx-solar-thermal-installer-admin-section.php">SunMaxx Dealer Portal</a></li>
            <li><a href="http://www.sunmaxxsolar.com/solar-hot-water-information-center.php">Pricelist &amp; Documents</a></li>
            <li><a href="http://www.sunmaxxsolar.com/sunmaxx-solar-projects.php">Reference Projects</a></li>
            <li><a href="http://www.sunmaxxsolar.com/slideshow.php">Image Galleries</a></li>
            <li><a href="http://www.sunmaxxsolar.com/sunmaxx-video-center.php">Video Galleries</a></li>
            <li><a href="http://www.sunmaxxsolar.com/solar-thermal-training-webinars.php">Webinar Replays</a></li>
            <li><a href="http://www.sunmaxxsolar.com/technical-tips.php">FAQs &amp; Tech Tips</a></li>
            <li><a href="http://www.sunmaxxsolar.com/sunmaxx-solar-hot-water-news-events.php">News &amp; Press Releases</a></li>
        </ul>
	</div>
    
    <h3 class="newsletterH3">SunMaxx Services</h3>
    <div class="newslettersidebarbox">
        <ul>
        	<li><a href="http://www.sunmaxxsolar.com/sunmaxx-engineering-services.php">SunMaxx Engineering Services</a></li>
            <li><a href="http://www.sunmaxxsolar.com/solar-installation-training.php">Solar Thermal Training</a></li>
            <li><a href="http://www.sunmaxxsolar.com/solar-pv-training-courses.php">PV Installation Training</a></li>
            <li><a href="http://www.sunmaxxsolar.com/sunmaxx-dealer-marketing-materials-services.php">SunMaxx Marketing Services</a></li>
        </ul>
	</div>
    
    <h3 class="newsletterH3">Quick Contact Form</h3>
    <div class="newslettersidebarbox">
        <?php echo do_shortcode('[contact-form 29 "SunMaxxDealerNewsletterSidebarForm"]'); ?>
	</div>

</div>